package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fjec.common.view.BaseVO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 006.采购商表
 * </p>
 *
 * @author admin
 * @since 2020-09-07
 */
@TableName("info_purchase")
@Data
public class InfoPurchase extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 商铺号码
     */
    @TableField("ShopNum")
    private Long shopNum;

    /**
     * 公司简称
     */
    @TableField("ShortName")
    private String shortName;

    /**
     * 联系人
     */
    @TableField("LinkMan")
    private String linkMan;

    /**
     * 联系电话
     */
    @TableField("Phone")
    private String phone;

    /**
     * 注册号
     */
    @TableField("RegNum")
    private String regNum;

    /**
     * 公司名称
     */
    @TableField("CompName")
    private String compName;

    /**
     * 公司法人
     */
    @TableField("Person")
    private String person;

    /**
     * 公司注册日期
     */
    @TableField("EstablishDate")
    private LocalDate establishDate;

    /**
     * 公司营业期限终止日期
     */
    @TableField("ValidPeriod")
    private LocalDate validPeriod;

    /**
     * 公司地址
     */
    @TableField("Address")
    private String address;

    /**
     * 注册资本
     */
    @TableField("Captial")
    private String captial;

    /**
     * 经营范围
     */
    @TableField("Business")
    private String business;

    /**
     * 采购需求
     */
    @TableField("Purchasing")
    private String purchasing;

    /**
     * 租金 保存单位为分
     */
    @TableField("Rent")
    private Integer rent;

    /**
     * 是否已付租金 0=否
     * 1=是
     */
    @TableField("PaidRent")
    private Integer paidRent;

    /**
     * 租金终止日期 使用2100年1月1日作为长期
     */
    @TableField("RentValidPeriod")
    private LocalDate rentValidPeriod;

    /**
     * 保证金金额 保存单位为分
     */
    @TableField("Deposit")
    private Integer deposit;

    /**
     * 保证金状态 0=未缴纳
     * 1=已缴纳
     * 2=申请退回
     * 3=已退回
     */
    @TableField("DepoStatus")
    private Integer depoStatus;

    /**
     * 保证金缴纳时间
     */
    @TableField("DepoPaymTime")
    private LocalDateTime depoPaymTime;

    /**
     * 保证金申请退回时间
     */
    @TableField("DepoApplyBackTime")
    private LocalDateTime depoApplyBackTime;

    /**
     * 保证金退回时间
     */
    @TableField("DepoRefundTime")
    private LocalDateTime depoRefundTime;

    /**
     * 公司头像
     */
    @TableField("CompHeadPic")
    private String compHeadPic;

    /**
     * 店铺评分
     */
    @TableField("ShopStar")
    private Integer shopStar;

    /**
     * 权重
     */
    @TableField("Weight")
    private Integer weight;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 是否允许电话联系
     */
    @TableField("AllowPhone")
    private Integer allowPhone;

    /**
     * 注册状态
     * 1=基本信息
     * 2=已完善信息
     */
    @TableField("RegStatus")
    private Integer regStatus;

    /**
     * 有无商品上架
     * 0=否（没有商品上架）
     * 1=是（有商品上架）
     */
    @TableField("HasSaleable")
    private Integer hasSaleable;

    /**
     * 是否锁定
     * 0=未锁定
     * 1=已锁定
     */
    @TableField("Locked")
    private Integer locked;

    @Override
    public String toString() {
        return "InfoPurchase{" +
                "id=" + id +
                ", userId=" + userId +
                ", shopNum=" + shopNum +
                ", shortName=" + shortName +
                ", linkMan=" + linkMan +
                ", phone=" + phone +
                ", regNum=" + regNum +
                ", compName=" + compName +
                ", person=" + person +
                ", establishDate=" + establishDate +
                ", validPeriod=" + validPeriod +
                ", address=" + address +
                ", captial=" + captial +
                ", business=" + business +
                ", purchasing=" + purchasing +
                ", rent=" + rent +
                ", paidRent=" + paidRent +
                ", rentValidPeriod=" + rentValidPeriod +
                ", deposit=" + deposit +
                ", depoStatus=" + depoStatus +
                ", depoPaymTime=" + depoPaymTime +
                ", depoApplyBackTime=" + depoApplyBackTime +
                ", depoRefundTime=" + depoRefundTime +
                ", compHeadPic=" + compHeadPic +
                ", shopStar=" + shopStar +
                ", weight=" + weight +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
